STEP 3: To run a function, we have to call the function by using it's name.

The command that calls the function should NOT be indented because it is separate from the function.

  • Click Run. Notice that the function code is in the editor, but it doesn't run on the stage.
  • Go to . Drag Function Call and drop it in your program, OUTSIDE the function.
  • Change my_function() to park_scene(). Click Run to see your function on the stage.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)